from app.handlers import UserHandler
from tornado.web import RedirectHandler
from app.handlers.MysqlHandler import MysqlHandler
from app.handlers.RedisHandler import RedisHandler
from app.handlers.HttpHandler import HttpHandler
from app.handlers.FileHander import FileHandler


handlers = [
    (r'/', RedirectHandler, dict(url="https://www.baidu.com")),
    ('/api/user/get/?', UserHandler.GetUserHandler),
    ('/api/user/login/?', UserHandler.LoginHandler),
    ('/api/user/register/?', UserHandler.RegisterHandler),
    ('/api/user/test/?', UserHandler.Test),
    (r'/api/mysql', MysqlHandler),
    (r'/api/redis', RedisHandler),
    (r'/api/request', HttpHandler),
    (r'/api/file', FileHandler),
]